package cn.com.selfsoft.smartcity.commons.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 抽象的实体
 *
 */
public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = 7597215597807585365L;

	private Long id;

	protected Date createDate;	// 创建日期
	protected Date updateDate;	// 更新日期

	/**
	 * 备注
	 */
	private String remarks;
	/**
	 * 删除标识：0正常，1删除
	 */
	private String delFlag="0";

	public BaseEntity() {
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
